<div id="s5_nd_content" style="display:none">

<?php
###################################################################################################
#  Display News  1.5.10 - September-08 by bkomraz1@gmail.com
#  http://joomlacode.org/gf/project/display_news/
#  Based on Display News - Latest 1-3 [07 June 2004] by Rey Gigataras [stingrey]   www.stingrey.biz  mambo@stingrey.biz
#  @ Released under GNU/GPL License : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
###################################################################################################

defined('_JEXEC') or die('Direct Access to this location is not allowed.');

$php4 = $params->get( 'php4', '' );
$height = $params->get( 'height', '' );
$width = $params->get( 'width', '' );
$title_size = $params->get( 'title_size', '' );
$title_margin = $params->get( 'title_margin', '' );
$content_bg_color = $params->get( 'content_bg_color', '' );
$content_lineheight = $params->get( 'content_lineheight', '' );
$content_padding_top = $params->get( 'content_padding_top', '' );
$content_padding_bottom = $params->get( 'content_padding_bottom', '' );
$content_padding_left = $params->get( 'content_padding_left', '' );
$content_padding_right = $params->get( 'content_padding_right', '' );
$text_size = $params->get( 'text_size', '' );
$content_size_layout = $params->get( 'content_size_layout', '' );
$article_link = $params->get( 'article_link', '' );
$hyperlink_text = $params->get( 'hyperlink_text', '' );
$display_time = $params->get( 'display_time', '' );
$title_color = $params->get( 'title_color', '' );
$text_color = $params->get( 'text_color', '' );
$s5_nd_th = $params->get( 's5_nd_th', '' );

$LiveSite 	= JURI::base();

$display_time = $display_time * 1000;

$brr = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser.
if(ereg("msie 6", $brr)) {
$is_ie6 = "yes";
} 
else {
$is_ie6 = "no";
}
$brr = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser.
if(ereg("msie 7", $brr)) {
$is_ie7 = "yes";
} 
else {
$is_ie7  = "no";
}

if(ereg("msie 8", $brr)) {
$is_ie8 = "yes";
} 
else {
$is_ie8  = "no";
}


function str_split_t($text) {
  $str_array=array();
  $len=strlen($text);
  for($i=0; $i<$len; $i++) {
    $str_array[]=$text{$i};
  }
  return $str_array;
}


require_once (dirname(__FILE__).DS.'helper.php');

$dn = new modDisplayNewsHelper2();
$dn->main($params);
?>

</div>




<script language="javascript" type="text/javascript" src="<?php echo $LiveSite ?>/modules/mod_s5_news_display/s5_news_display/s5_news_display.js"></script>

<div style="display:none">

<script type="text/javascript">//<![CDATA[
document.write('<style type="text/css">.s5_nd_image{display:none}</style>');
//]]></script>

<img src="" id="s5_nd_pl_1" alt=""></img>
<img src="" id="s5_nd_pl_2" alt=""></img>
<img src="" id="s5_nd_pl_3" alt=""></img>
<img src="" id="s5_nd_pl_4" alt=""></img>
<img src="" id="s5_nd_pl_5" alt=""></img>
<img src="" id="s5_nd_pl_6" alt=""></img>
<img src="" id="s5_nd_pl_7" alt=""></img>
<img src="" id="s5_nd_pl_8" alt=""></img>
<img src="" id="s5_nd_pl_9" alt=""></img>
<img src="" id="s5_nd_pl_10" alt=""></img>

</div>


<div id="s5_nd" style="float:left; height:<?php echo $height ?>px;width:<?php echo $width ?>px;background:#000000; overflow:hidden">

	<div id="s5_nd_inner" style="opacity:.0; <?php if ($is_ie6 == "yes" || $is_ie7 == "yes") { ?>filter: alpha(opacity=0); -moz-opacity: 0;<?php } ?> ">

		<div style="cursor:pointer; height:<?php echo $height ?>px;width:<?php echo $width ?>px; overflow:hidden; background-image: url(<?php echo $text1_image ?>); background-repeat: no-repeat" id="blenddiv_s5_nd">

			<img src="<?php echo $text1_image ?>" style="cursor:pointer; border: 0 none;opacity:.0; <?php if ($is_ie6 == "yes" || $is_ie7 == "yes") { ?>filter: alpha(opacity=0); -moz-opacity: 0;<?php } ?> " id="blendimage_s5_nd" alt="" />

		</div> 
		
		<div id="s5_nd_content_window_bg" style="opacity:.0; <?php if ($is_ie6 == "yes" || $is_ie7 == "yes") { ?>filter: alpha(opacity=0); -moz-opacity: 0;<?php } ?> ; width:<?php echo $content_size_layout ?>px; margin-top:-<?php echo $height ?>px; height:<?php echo $height ?>px; overflow:hidden; <?php if ($content_bg_color  != "none") { ?>background:#<?php echo $content_bg_color ?>; <?php } ?>position:absolute">	
		</div>
		
		<div id="s5_nd_content_window" style="width:<?php echo $content_size_layout ?>px; margin-top:-<?php echo $height ?>px; height:<?php echo $height ?>px; overflow:hidden; position:absolute; z-index:2">
			<div id="s5_nd_content_window_inner" style="padding-left:<?php echo $content_padding_left ?>px; padding-right:<?php echo $content_padding_right ?>px; padding-top:<?php echo $content_padding_top ?>px; padding-bottom:<?php echo $content_padding_bottom ?>px">
			
			<div id="s5_nd_title" style="cursor:pointer; width:<?php echo $content_size_layout - ($content_padding_left + $content_padding_right) ?>px; line-height:<?php echo $content_lineheight - 50 ?>%; margin-bottom:<?php echo $title_margin ?>px; float:left; color:#<?php echo $title_color ?>; font-size:<?php echo $title_size ?>px"></div>
				<div style="clear:both"></div>
			<div id="s5_nd_text" style="width:<?php echo $content_size_layout - ($content_padding_left + $content_padding_right) ?>px; line-height:<?php echo $content_lineheight ?>%; float:left; color:#<?php echo $text_color ?>; font-size:<?php echo $text_size ?>px"></div>
			
			<?php if ($article_link  == "yes") { ?>
				<div style="clear:both"></div>
			<div id="s5_nd_hyperlink" style="width:<?php echo $content_size_layout - ($content_padding_left + $content_padding_right) ?>px; line-height:<?php echo $content_lineheight ?>%; float:left; color:#<?php echo $text_color ?>; font-size:<?php echo $text_size ?>px; margin-top:8px; cursor:pointer; font-weight:bold"></div>
			<?php } ?>
			
			</div>
		</div>

	</div>
	
	<div style="margin-top:-20px; position:absolute; z-index:2; margin-left:5px">

			<div id="s5_nd_stop" style="margin-top:4px; width:6px; height:9px; background-image:url(<?php echo $LiveSite ?>/modules/mod_s5_news_display/s5_news_display/pause.png); background-repeat:no-repeat; cursor:pointer; float:left; margin-left:4px; margin-right:4px" onclick="s5_nd_stop()"></div>

			<div id="s5_nd_play" style="margin-top:4px; width:5px; height:9px; background-image:url(<?php echo $LiveSite ?>/modules/mod_s5_news_display/s5_news_display/play.png); background-repeat:no-repeat; cursor:pointer; float:left; margin-left:4px; margin-right:8px" onclick="s5_nd_play()"></div>

	</div>

</div>

<div style="float:left; margin-left:10px; height:<?php echo $height ?>px; overflow:hidden">

	<div id="s5_nd_buttons" style="float:left">

		<script type="text/javascript">//<![CDATA[
		if (document.getElementById("s5_nd_title_1")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play1();s5_nd_stop()"><img id="s5_nd_1" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_2")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play2();s5_nd_stop()"><img id="s5_nd_2" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_3")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play3();s5_nd_stop()"><img id="s5_nd_3" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_4")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play4();s5_nd_stop()"><img id="s5_nd_4" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_5")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play5();s5_nd_stop()"><img id="s5_nd_5" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_6")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play6();s5_nd_stop()"><img id="s5_nd_6" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_7")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play7();s5_nd_stop()"><img id="s5_nd_7" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_8")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play8();s5_nd_stop()"><img id="s5_nd_8" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_9")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play9();s5_nd_stop()"><img id="s5_nd_9" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		if (document.getElementById("s5_nd_title_10")) {
			document.write('<div style="cursor:pointer; margin-bottom:10px; border:solid 1px #A7A6A6" onclick="s5_nd_start();s5_nd_play10();s5_nd_stop()"><img id="s5_nd_10" alt="" src="" style="height:<?php echo $s5_nd_th ?>px"></img></div>');
			}
		//]]></script>

	<div style="clear:both"></div>
	
	</div>

</div>



<script type="text/javascript">

document.getElementById("blenddiv_s5_nd").style.backgroundImage = "url(" + document.getElementById("s5_nd_image_1").innerHTML + ")";
document.getElementById("blendimage_s5_nd").src = document.getElementById("s5_nd_image_1").innerHTML;

if (document.getElementById("s5_nd_image_1")) {
	document.getElementById("s5_nd_pl_1").src = document.getElementById("s5_nd_image_1").innerHTML;
	document.getElementById("s5_nd_1").src = document.getElementById("s5_nd_image_1").innerHTML;
}
if (document.getElementById("s5_nd_image_2")) {
	document.getElementById("s5_nd_pl_2").src = document.getElementById("s5_nd_image_2").innerHTML;
	document.getElementById("s5_nd_2").src = document.getElementById("s5_nd_image_2").innerHTML;
}
if (document.getElementById("s5_nd_image_3")) {
	document.getElementById("s5_nd_pl_3").src = document.getElementById("s5_nd_image_3").innerHTML;
	document.getElementById("s5_nd_3").src = document.getElementById("s5_nd_image_3").innerHTML;
}
if (document.getElementById("s5_nd_image_4")) {
	document.getElementById("s5_nd_pl_4").src = document.getElementById("s5_nd_image_4").innerHTML;
	document.getElementById("s5_nd_4").src = document.getElementById("s5_nd_image_4").innerHTML;
}
if (document.getElementById("s5_nd_image_5")) {
	document.getElementById("s5_nd_pl_5").src = document.getElementById("s5_nd_image_5").innerHTML;
	document.getElementById("s5_nd_5").src = document.getElementById("s5_nd_image_5").innerHTML;
}
if (document.getElementById("s5_nd_image_6")) {
	document.getElementById("s5_nd_pl_6").src = document.getElementById("s5_nd_image_6").innerHTML;
	document.getElementById("s5_nd_6").src = document.getElementById("s5_nd_image_6").innerHTML;
}
if (document.getElementById("s5_nd_image_7")) {
	document.getElementById("s5_nd_pl_7").src = document.getElementById("s5_nd_image_7").innerHTML;
	document.getElementById("s5_nd_7").src = document.getElementById("s5_nd_image_7").innerHTML;
}
if (document.getElementById("s5_nd_image_8")) {
	document.getElementById("s5_nd_pl_8").src = document.getElementById("s5_nd_image_8").innerHTML;
	document.getElementById("s5_nd_8").src = document.getElementById("s5_nd_image_8").innerHTML;
}
if (document.getElementById("s5_nd_image_9")) {
	document.getElementById("s5_nd_pl_9").src = document.getElementById("s5_nd_image_9").innerHTML;
	document.getElementById("s5_nd_9").src = document.getElementById("s5_nd_image_9").innerHTML;
}
if (document.getElementById("s5_nd_image_10")) {
	document.getElementById("s5_nd_pl_10").src = document.getElementById("s5_nd_image_10").innerHTML;
	document.getElementById("s5_nd_10").src = document.getElementById("s5_nd_image_10").innerHTML;
}

window.setTimeout('s5_nd_fadefirst()',1300);
s5_nd_timer1=setTimeout('s5_nd_play2()',<?php echo $display_time + 300 ?>);

function s5_nd_play1() {
	s5_nd_current = 1;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_1").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_1").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play1_text_in()',300);
	}
	s5_nd_timer2=setTimeout('s5_nd_play1_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play1_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_1").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_1").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click1;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click1;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click1; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play1_next() {
		if (document.getElementById("s5_nd_title_2")) {
			s5_nd_play2();
		}	
		}
	
		
function s5_nd_play2() {
	s5_nd_current = 2;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_2").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_2").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play2_text_in()',300);
	}
	s5_nd_timer3=setTimeout('s5_nd_play2_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play2_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_2").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_2").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click2;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click2;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click2; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play2_next() {
		if (document.getElementById("s5_nd_title_3")) {
			s5_nd_play3();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play3() {
	s5_nd_current = 3;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_3").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_3").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play3_text_in()',300);
	}
	s5_nd_timer4=setTimeout('s5_nd_play3_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play3_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_3").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_3").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click3;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click3;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click3; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play3_next() {
		if (document.getElementById("s5_nd_title_4")) {
			s5_nd_play4();
		}
		else {
			s5_nd_play1();
		}
		}

		
function s5_nd_play4() {
	s5_nd_current = 4;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_4").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_4").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play4_text_in()',300);
	}
	s5_nd_timer5=setTimeout('s5_nd_play4_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play4_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_4").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_4").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click4;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click4;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click4; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play4_next() {
		if (document.getElementById("s5_nd_title_5")) {
			s5_nd_play5();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play5() {
	s5_nd_current = 5;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_5").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_5").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play5_text_in()',300);
	}
	s5_nd_timer6=setTimeout('s5_nd_play5_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play5_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_5").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_5").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click5;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click5;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click5; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play5_next() {
		if (document.getElementById("s5_nd_title_6")) {
			s5_nd_play6();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play6() {
	s5_nd_current = 6;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_6").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_6").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play6_text_in()',300);
	}
	s5_nd_timer7=setTimeout('s5_nd_play6_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play6_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_6").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_6").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click6;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click6;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click6; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play6_next() {
		if (document.getElementById("s5_nd_title_7")) {
			s5_nd_play7();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play7() {
	s5_nd_current = 7;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_7").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_7").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play7_text_in()',300);
	}
	s5_nd_timer8=setTimeout('s5_nd_play7_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play7_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_7").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_7").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click7;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click7;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click7; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play7_next() {
		if (document.getElementById("s5_nd_title_8")) {
			s5_nd_play8();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play8() {
	s5_nd_current = 8;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_8").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_8").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play8_text_in()',300);
	}
	s5_nd_timer9=setTimeout('s5_nd_play8_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play8_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_8").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_8").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click8;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click8;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click8; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play8_next() {
		if (document.getElementById("s5_nd_title_9")) {
			s5_nd_play9();
		}
		else {
			s5_nd_play1();
		}
		}
		
		
function s5_nd_play9() {
	s5_nd_current = 9;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_9").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_9").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play9_text_in()',300);
	}
	s5_nd_timer10=setTimeout('s5_nd_play9_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play9_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_9").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_9").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click9;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click9;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click9; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play9_next() {
		if (document.getElementById("s5_nd_title_10")) {
			s5_nd_play10();
		}
		else {
			s5_nd_play1();
		}
		}
		
		

function s5_nd_play10() {
	s5_nd_current = 10;
if (s5_nd_playing == "0") {
	blendimage_s5_nd('blenddiv_s5_nd','blendimage_s5_nd', document.getElementById("s5_nd_image_10").innerHTML,1000);
	if (document.getElementById("s5_nd_text").innerHTML !=document.getElementById("s5_nd_text_10").innerHTML) {
		opacity_s5_nd('s5_nd_content_window', 100, 0, 300);
		window.setTimeout('s5_nd_play10_text_in()',300);
	}
	s5_nd_timer11=setTimeout('s5_nd_play10_next()',<?php echo $display_time ?>);
}
}
	function s5_nd_play10_text_in() {
	<?php if ($is_ie6 == "yes" || $is_ie7 == "yes" || $is_ie8 == "yes") { ?>window.setTimeout('s5_nd_ie_fix()',350);<?php } ?>
	document.getElementById("s5_nd_title").innerHTML = document.getElementById("s5_nd_title_10").innerHTML;
	document.getElementById("s5_nd_text").innerHTML = document.getElementById("s5_nd_text_10").innerHTML;
	document.getElementById("s5_nd_title").onclick = s5_nd_click10;
	document.getElementById("blendimage_s5_nd").onclick = s5_nd_click10;
	if (document.getElementById("s5_nd_hyperlink")) { document.getElementById("s5_nd_hyperlink").onclick = s5_nd_click10; }
	opacity_s5_nd('s5_nd_content_window', 0, 100, 300);
	}
		function s5_nd_play10_next() {
		if (document.getElementById("s5_nd_title_1")) {
			s5_nd_play1();
		}
		else {
			s5_nd_play1();
		}
		}

		window.setTimeout('s5_nd_hyperlink()',1300);
		
		function s5_nd_hyperlink() {
		if (document.getElementById("s5_nd_hyperlink")) {
			document.getElementById("s5_nd_hyperlink").innerHTML = "<?php echo $hyperlink_text ?>";
		}
		}
	
</script>
